Vcenter NamespaceManagement VirtualMachineClasses UpdateSpec
The Vcenter NamespaceManagement VirtualMachineClasses UpdateSpec schema contains the specification required to update a VM class object.
This schema was added in vSphere API 7.0.2.00100.
{
"cpu_count": 0,
"cpu_reservation": 0,
"memory_mb": 0,
"memory_reservation": 0,
"description": "string",
"devices": {
"vgpu_devices": [
{
"profile_name": "string"
}
],
"dynamic_direct_path_io_devices": [
{
"vendor_id": 0,
"device_id": 0,
"custom_label": "string"
}
]
},
"instance_storage": {
"policy": "string",
"volumes": [
{
"size": 0
}
]
},
"config_spec": {}
}
The number of CPUs configured for virtual machine of this class.
This property was added in vSphere API 7.0.2.00100.
If missing or null
the current value the will not be modified.
This property is deprecated as of vSphere API 8.0.2.0. Use CPU allocation in Vcenter NamespaceManagement VirtualMachineClasses UpdateSpec.config_spec instead to reserve CPUs for a virtual machine.
The percentage of total available CPUs reserved for a virtual machine. We multiply this percentage by the minimum frequency amongst all the cluster nodes to get the CPU reservation that is specified to vSphere in MHz.
This property was added in vSphere API 7.0.2.00100.
If missing or null
, no CPU reservation is requested for the virtual machine.
The amount of memory in MB configured for virtual machine of this class.
This property was added in vSphere API 7.0.2.00100.
If missing or null
the current value the will not be modified.
This property is deprecated as of vSphere API 8.0.2.0. Use memory allocation in Vcenter NamespaceManagement VirtualMachineClasses UpdateSpec.config_spec instead to reserve memory for a virtual machine.
The percentage of available memory reserved for a virtual machine of this class. Memory reservation must be set to 100% for VM class with vGPU or Dynamic DirectPath I/O devices.
This property was added in vSphere API 7.0.2.00100.
If missing or null
, no memory reservation is requested for virtual machine.
Description for the VM class.
This property was added in vSphere API 7.0.2.00100.
If missing or null
, description is not updated.
This property is deprecated as of vSphere API 8.0.2.0. Use device changes in Vcenter NamespaceManagement VirtualMachineClasses UpdateSpec.config_spec instead to add vGPU and Dynamic DirectPath I/O virtual devices.
Virtual devices corresponding to the VM class.
This property was added in vSphere API 7.0.3.0.
If missing or null
, virtual devices will not be updated.
Instance storage associated with the VM class.
This property was added in vSphere API 8.0.0.0.
If missing or null
, instance storage specification will not be updated.
A VirtualMachineConfigSpec associated with the VM class.
This property was added in vSphere API 8.0.2.0.
If missing or null
, the config spec will not be updated.